package com.oocl.pojo;

import java.util.Date;

/**
 * @description: 购物车中的商品信息
 * @author  XIEMI2
 * @date Aug 3, 2017 1:46:13 PM
 * @version 1.0
 */
public class Merchandise {
	
	private String id;
	private int total;    //数量
	private String name;   //名称
	private double price;  //金额
	private Date date; 	   //加入购物车的时间
	private String img;    //图片信息
	
	public Merchandise() {
		super();
	}
	/**
	 * 
	 * @param id
	 * @param total
	 * @param name
	 * @param price
	 * @param date
	 * @param img
	 */
	public Merchandise(String id, int total, String name, double price, Date date, String img) {
		super();
		this.id = id;
		this.total = total;
		this.name = name;
		this.price = price;
		this.date = date;
		this.img = img;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	@Override
	public String toString() {
		return "Merchandise [id=" + id + ", total=" + total + ", name=" + name + ", price=" + price + ", date=" + date + ", img=" + img + "]";
	}
	
	
	
}


